package org.fmblzf.library.version;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

import org.fmblzf.library.util.LogUtils;

/**
 * Created by zhaofeng on 2016/1/8.
 *
 */
public class ServiceUpdate extends Service {
    /**
     * 当前类标记
     */
    private static final String TAG = ServiceUpdate.class.getName();

    @Override
    public void onCreate() {
        super.onCreate();
        if (LogUtils.isLog)
            Log.i(TAG,"onCreate");
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        if (LogUtils.isLog)
            Log.i(TAG,"onStartCommand");
        return super.onStartCommand(intent, flags, startId);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        if (LogUtils.isLog)
            Log.i(TAG,"onDestroy");
    }

    @Override
    public IBinder onBind(Intent intent) {
        if (LogUtils.isLog)
            Log.i(TAG,"onBind");
        return null;
    }

    @Override
    public boolean onUnbind(Intent intent) {
        if (LogUtils.isLog)
            Log.i(TAG,"onUnbind");
        return super.onUnbind(intent);
    }

    @Override
    public void onRebind(Intent intent) {
        if (LogUtils.isLog)
            Log.i(TAG,"onRebind");
        super.onRebind(intent);
    }
}
